Skip to content

refactor(mqlaunch): de-layer the GitHub repo picker into a lib (Step 11a)#47

Merged
MCamner merged 1 commit into
mainfrom
feat/monolith-delayer-repo-picker
Jul 5, 2026
Merged

refactor(mqlaunch): de-layer the GitHub repo picker into a lib (Step 11a)#47
MCamner merged 1 commit into
mainfrom
feat/monolith-delayer-repo-picker

Conversation

@MCamner

@MCamner MCamner commented Jul 5, 2026

Copy link
Copy Markdown
Owner

What

Sixth slice of Step 11a (monolith de-layering, audit P4). Pull run_github_repo_picker out of terminal/launchers/mqlaunch.sh into mqlaunch/lib/repo-picker.sh — fzf over gh repo list, then an action menu (open in browser / cd into repo / clone to ~/repos, optionally opening in VS Code or Finder).

  • Verbatim move, sourced back into the launcher's scope — still uses the ambient UI helpers and $HOME/$SHELL. No behavior change.
  • Callers resolve (main dispatch + command-mode declare -f … guard).
  • Pure bash → bash shebang + full shellcheck coverage.
  • Launcher: 1457 → 1348 lines. Since 11a began: 2082 → 1348, ~720 lines out across six libs.

Also corrects the launcher's mislabeled # Opens repo browser. comment above the function (a copy-paste from open_repo_browser) to an accurate one in the lib — the function body itself is unchanged.

Guard

Added the repo-picker row to tests/monolith-delayer-smoke.sh — now 32 functions across 5 concern libs.

Verification

Full selftest suite green (146 shell files lint clean); shellcheck clean on the new lib; resolution smoke confirms the function resolves after sourcing; markdownlint clean.

Part of the v2.0.0 runtime-authority track.

🤖 Generated with Claude Code

…Step 11a)

Pull run_github_repo_picker (fzf over `gh repo list` + open/clone action menu)
out of the mqlaunch.sh monolith into mqlaunch/lib/repo-picker.sh, sourced back
into the launcher's scope. Verbatim move: still uses the ambient UI helpers and
$HOME/$SHELL; callers (main dispatch + command-mode's `declare -f … ` guard)
resolve because the lib sources before dispatch. No behavior change. Pure bash,
covered by shellcheck. Launcher: 1457 → 1348 lines (~720 out since 11a began).

The launcher's mislabeled "# Opens repo browser." comment above the function is
corrected to an accurate one in the lib; the function body is unchanged.

Smoke CONCERNS row added (32 functions across 5 libs); AUTHORITY_MAP and
CHANGELOG updated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@MCamner MCamner merged commit cf8d907 into main Jul 5, 2026
3 checks passed
@MCamner MCamner deleted the feat/monolith-delayer-repo-picker branch July 5, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant